package ext.tianma.util;

public class TianMaConstants {
	
	/**
	 * 受控PDF图档的研发地
	 * @author xuge_ning
	 * key key值同研发地
	 * land 研发地
	 *
	 */
	public static enum DevelopLand{
		WUHANG("武汉","武汉"),WUHANG6("武汉G6","武汉G6"),XIAMENG55("厦门G5.5","厦门G5.5"),XIAMENG6("厦门G6","厦门G6");
		
		private final String key;
		private final String land;
		
		private DevelopLand(String key,String land){
			this.key = key;
			this.land = land;
		}

		public String getKey() {
			return key;
		}

		public String getLand() {
			return land;
		}
		
		public static String getLand(String key) {
			for(DevelopLand land:DevelopLand.values()){
				if(land.key.equals(key)){
					return land.land;
				}
			}
			return "";
		}
		
	}
	
	public static enum EffectiveSite{
		C01("C01"),C02("C02"),C04("C04"),C08("C08"),A10("A10"),F10("F10"),E10("E10"),H10("H10"),K10("K10"),I13("I13"),I10("I10"),F13("F13");
		private EffectiveSite(String site) {
			this.site = site;
		}

		private final String site;
		
		public String getSite() {
			return site;
		}
		
	}
	public static void main(String[] args) {
		String land = TianMaConstants.DevelopLand.getLand("厦门G5.5");
		System.out.println(land.equals("厦门G5.5"));
	}
}
